/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除 POST /record/issueType/deleteData */
export async function recordIssueTypeDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.RecordIssueTypeBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/issueType/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /record/issueType/getData */
export async function recordIssueTypeGetDataUsingPost({
  body,
  options,
}: {
  body: API.RecordIssueTypeVoRecordIssueTypeGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordIssueTypeVo>('/record/issueType/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** list查询 POST /record/issueType/listData */
export async function recordIssueTypeListDataUsingPost({
  body,
  options,
}: {
  body: API.RecordIssueTypeBoRecordIssueTypeListData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordIssueTypeVo>('/record/issueType/listData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /record/issueType/saveData */
export async function recordIssueTypeSaveDataUsingPost({
  body,
  options,
}: {
  body: API.RecordIssueTypeBoRecordIssueTypeSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/record/issueType/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /record/issueType/updateData */
export async function recordIssueTypeUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.RecordIssueTypeBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/issueType/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
